#pragma once

#include <stdio.h>
#include <stdlib.h>
#include <string.h>

#define max_num 100
#define max 2


enum s
{
	EXIT,
	ADD,
	PRINT,
	POP,
	SEEK,
	SORT,
	REVISE
};

struct member
{
	char name[20];
	int age;
	char sex[10];
	char location[20];
};

//struct address_book
//{
//	struct member arr[max_num];
//	int length;
//};

struct address_book
{
	struct member* arr;
	int max_length;
	int length;
};


void initaddress_book(struct address_book* s);
void add_member(struct address_book* s);
void print_member(struct address_book* s);
void pop_member(struct address_book* s);
void seek_member(struct address_book* s);
void sort_member(struct address_book* s);
void revise_member(struct address_book* s);
void dilatation(struct address_book* s);